<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/vue.js"></script>
</head>
<body>
<div id="root">
    <button @click="run">run:点我</button>
    <child></child>
</div>
</body>
<script>
    new Vue({
        el: "#root",
        methods:{
            run(){
                this.$emit("suibian",1,1,1,1)
            }
        },
        components:{
            Child:{
                template:(`
				    <button @click="fn">点我</button>
				`),
                methods:{
                    fn(){
                        this.$emit("suibian",1,2,3,4)
                    }
                },
                mounted(){
                    this.$on("suibian",function(a,b,c,d){
                        console.log("suibian",a,b,c,d);
                        this.$off("suibian");
                    })
                }
            }
        }
    })
</script>
</html>